const banner = function(Mock){
    const getBanner = function(req, res){
        let bannerList = Mock.mock({
            "array|3": [
              {
                  "image": "@image('800x300', @color)",
                  "name": '@first()'
              }
            ]
          }).array
          
        return {
            bannerList,
            code: 200,
        }
    }

    Mock.mock('/banner/getBanner', 'get', getBanner)
}

export default banner